import libtcodpy as libtcod

INVENTORY_SIZE = 9

SCREEN_W = 80
SCREEN_H = 25

MAP_W = 59
MAP_H = 18

BUFFER_H = 5

FONTS = [
    ('fonts/terminal10x18.png',
     libtcod.FONT_LAYOUT_ASCII_INROW),
    ('fonts/terminal8x15.png',
     libtcod.FONT_LAYOUT_ASCII_INROW),
    ('fonts/terminal8x8.png',
     libtcod.FONT_LAYOUT_ASCII_INCOL),
]

VERSION = '0.1'
TITLE = 'featurecreeper v' + VERSION

TITLE_TEXT = [ 
    '',
    (libtcod.dark_green, 'by Jesse Scherer <scherer.jesse@gmail.com>'),
    '',
    (libtcod.dark_green, 'based heavily upon Madness'),
    (libtcod.dark_green, 'by hmp <humpolec@gmail.com>'),
]

TITLE_THROBBER = [
    (libtcod.white, 'Press ENTER to continue'),
]

TITLE_SPLASH = [
    (libtcod.light_green, "  __            _                                                     "),
    (libtcod.light_green, " / _| ___  __ _| |_ _   _ _ __ ___  ___ _ __ ___  ___ _ __   ___ _ __ "),
    (libtcod.light_green, "| |_ / _ \/ _` | __| | | | '__/ _ \/ __| '__/ _ \/ _ \ '_ \ / _ \ '__|"),
    (libtcod.light_green, "|  _|  __/ (_| | |_| |_| | | |  __/ (__| | |  __/  __/ |_) |  __/ |   "),
    (libtcod.light_green, "|_|  \___|\__,_|\__|\__,_|_|  \___|\___|_|  \___|\___| .__/ \___|_|   "),
    (libtcod.light_green, "                                                     |_|              "),
]

HELP_TEXT = '''\
--- featurecreeper - a roguelike ---

  Your task is simple: reach level 10 of the dungeon and defeat the evil
Dungeon Master. Be careful - not all of what you see is real. And not all of
what isn't real is harmless...

  You start with a single candle in your backpack. Use it well.

--- Keybindings ---
Move:  numpad,             Inventory:    i
       arrow keys,         Pick up:      g, ,
       yuhjklbn            Drop:         d
Wait:  5, .                Descend:      >
Look:  x, ;                Ascend:       <
Help:  ?                   Change font:  F10
Quit:  q, Esc              Wizard Menu:  W

[Press any key to continue]'''

UNKNOWN_GLYPH = '?', libtcod.red

MAX_SANITY = 100

MAX_SPEED = 5
MIN_SPEED = -4

MAX_CLEVEL = 6
MAX_DLEVEL = 10

INVENTORY_SLOTS = {
    'w': 'wielded',
    'l': 'carried as light source',
    'a': 'being worn',
    'b': 'being worn',
}
